package com.monkey.toolsshop.common.filter;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;
import java.util.logging.Logger;

@WebFilter(filterName = "userLoginAccessFilter",urlPatterns = "/*")
public class UserLoginAccessFilter implements Filter {

    private static final Logger catalinaLogger = Logger.getLogger(UserLoginAccessFilter.class.getName());

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
            throws IOException, ServletException {
        catalinaLogger.warning("进入filter");
    }

    @Override
    public void destroy() {
    }
}
